<div class="mainbox">
    <div class="sign {{islogin&&'none'||'focus'}}">
        <div class="title">Dotnar</div>
        <div class="stitle">欢迎使用dotnar微站</div>
        <div class="item">
            <input bind-input="{{'$Cache.sign_in.name'}}" value="{{$Cache.sign_in.name}}" type="text" class="signinput" placeholder="请输入用户名或手机号" />
        </div>
        <div class="item">
            <input bind-input="{{'$Cache.sign_in.password'}}" value="{{$Cache.sign_in.password}}" type="password" class="signinput" placeholder="密码" event-enter="{{'$Event.sign_in.login'}}" />
        </div>
        <div class="item">
            <button class="signbutton" event-click="{{'$Event.sign_in.login'}}">登陆</button>
        </div>
        <div class="item">
            <a href="admin.dotnar.com/mobile.admin-login.html" class="first">商家登陆</a>
            <a event-click="{{'$Event.changeTosignup'}}">注册新账户</a>
        </div>
    </div>
    <div class="sign {{islogin&&'focus'||'none'}}">
        <div class="title">Dotnar</div>
        <div class="stitle">欢迎注册dotnar新账户</div>
        <div class="item">
            <input bind-input="{{'$Cache.sign_up.mobile_phone'}}" value="{{$Cache.sign_up.mobile_phone}}" type="text" class="signinput" placeholder="手机号" />
        </div>
        <div class="item">
            <input bind-input="{{'$Cache.sign_up.password'}}" value="{{$Cache.sign_up.password}}" type="password" class="signinput" placeholder="密码" />
        </div>
        <div class="item">
            <input bind-input="{{'$Cache.sign_up.phone_code'}}" value="{{$Cache.sign_up.phone_code}}" type="text" class="signinput" placeholder="短信验证码" />
        </div>
        <div class="item">
            {{#if getcode}}<a class="checkcode focus">{{remaining}}秒后重新获取验证码</a>{{#else}}<a class="checkcode" event-click="{{'$Event.getcheckcode'}}" event-click-getcode="{{'$Event.sign_up.get_register_code'}}" event-enter="{{'$Event.sign_up.register'}}">点击获取手机验证码{{/if}}</a>
        </div>
        <div class="item">
            <button class="signbutton">注册</button>
        </div>
        <div class="item">
            <a event-click="{{'$Event.changeTosignup'}}">已有账号，去登陆</a>
        </div>
    </div>
</div>
